<script setup lang="ts">
import { ref } from "vue";
const count = ref(100)
const btnAddClick = () => {
  count.value++
  console.log(count.value);
}
const btnReduceClick = () => {
  count.value--
  console.log(count.value);
}


</script>
<template>
  <button @click="btnAddClick()">+</button>
  <span>{{ count }}</span>
  <button @click="btnReduceClick()">-</button>
</template>
<style></style>